package indigo.ueditor.handler;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import indigo.ueditor.UEditorHandler;

public class ConfigLoaderHandler implements UEditorHandler {
	private final String name;
	private final Map<String, Object> config;

	public ConfigLoaderHandler(String name, Map<String, Object> config) {
		this.name = name;
		this.config = config;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Object handle(HttpServletRequest request) {
		return config;
	}
}
